/**
 * 
 */
package tests;


import java.io.IOException;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import plogg.BluetoothDevice;

/**
 * @author bd84vx
 *
 */
public class TestBluetoothDevice {

	/**
	 * @throws java.lang.Exception
	 */
	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
		
	}

	/**
	 * @throws java.lang.Exception
	 */
	@AfterClass
	public static void tearDownAfterClass() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@Before
	public void setUp() throws Exception {
	}

	/**
	 * @throws java.lang.Exception
	 */
	@After
	public void tearDown() throws Exception {
	}
	
	@Test
	public void testDeviceScan()	{
		//System.out.println(Plogg.getAvailablePloggs());
	}
	
	@Test
	public void testBTDeviceScanDirectly() throws IOException, InterruptedException	{
		/*
		 * @TODO Write some real tests 
		 */
		BluetoothDevice test = BluetoothDevice.getInstance();
		test.bluetoothScan();
	}

	@Test
	public void testSetDefaults()	{
		BluetoothDevice test = BluetoothDevice.getInstance();
		test.setPloggDefaults("008098E7D06B", "ploggName");
	}
	
	@Test
	public void testGetLogEntries()	{
		BluetoothDevice test = BluetoothDevice.getInstance();
		test.getLatestEntries("008098E7D06B");
	}
}
